package first.demo;
public class sushu {
    public static void main(String[] args) {
        int x;
        int num = 0;
        x = 2;
        while (num < 50) {
            int i;
            int isPrime = 1;//x是素数
            for (i = 2; i < x; i++) {
                if (x % i == 0) {
                    isPrime = 0;
                    break;
                }
            }
            if (isPrime == 1) {
                num++;
                System.out.print(x + "\t");
                if (num % 10 == 0) {
                    System.out.println();
                }

            }
            x++;
        }
    }
}
